# 统计输入的字符个数

# 用户输入数据
# str = 'abclab'
str = input('输入数据')
# 创建一个空字典
counts = {}
for k in str:
    counts[k] = counts.get(k, 0)+1
print(counts)